package com.multi.tool;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

/**
 * @author zhengpeng.wang
 */
public class Test {
    public static void main(String[] args) {

        List<String> stringList = Arrays.asList("d");

        ArrayList list = new ArrayList();
        list.add("a");
        list.add("b");
        list.add("c");
        Iterator it = list.iterator();

        while(it.hasNext()){

            String str = (String) it.next();
            if ("b".equals(str)) {
                it.remove();
                continue;
            }

            System.out.println(str);

        }

        list.add(stringList);

    }
}
